package com.baize.glinkad.bean.ads;

import android.app.Activity;

import com.baize.glinkad.bean.ADInfo;
import com.baize.glinkad.bean.base.BannerModel;
import com.baize.glinkad.bean.listener.BannerListener;
import com.baize.glinkad.manager.ADManagerFactory;

public class BannerAD {

    public BannerModel bannerModel;

    public BannerAD(Activity activity, ADInfo aDInfo, String posID) {
        this.bannerModel = new BannerModel(activity, aDInfo, posID);

    }

    public void destroy() {
        this.bannerModel.destroy();
    }

    public boolean isReady() {
        return ADManagerFactory.instance().glinkAD.isBannerReady;
    }

    public void load() {
        this.bannerModel.load();
    }

    public void setBannerListener(BannerListener bannerListener) {
        this.bannerModel.setBannerListener(bannerListener);
    }


}
